/*
package com.jymj.controller;

import com.jymj.entity.SysXzqEntity;
import com.jymj.entity.YlEntity;
import com.jymj.entity.data.ParameterEntity;
import com.jymj.service.ReportService;
import com.jymj.utils.PageUtils;
import com.jymj.utils.Query;
import com.jymj.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

*/
/**
 * Created by ${lc} on 2020/4/1. 报表
 *//*

@RestController
@RequestMapping("/report")
public class ReportController {
    @Autowired
    private ReportService reportService;

    */
/*
    * 查询镇的数据报表
    * *//*

    @RequestMapping("/queryZhen")
    public R queryZhen(){
        SysXzqEntity sysXzqEntity = reportService.queryZhen();
        return R.ok().put("data",sysXzqEntity);
    }

    */
/*
    * 查询村的数据报表  参数 村code的数组 page limit
    * *//*

    @RequestMapping("/queryCun")
    public R queryCun(@RequestBody Map<String, Object> params){
        List<String> code = new ArrayList<>();
        if (params.get("codes") != null){
            String codes = params.get("codes").toString();
            String[] strs=codes.split(",");
            for(int i=0,len=strs.length;i<len;i++){
                code.add(strs[i].toString());
            }
        }
        Query query = new Query(params);
        query.put("codes",code);
        List<SysXzqEntity> sysXzqEntities = reportService.queryCun(query);
        int total = reportService.queryCunTotal(query);
        PageUtils pageUtil = new PageUtils(sysXzqEntities, total, query.getLimit(), query.getPage());
        return R.ok().put("data",pageUtil);
    }

    */
/*
    * 查询院落的数据报表  参数 村code page limit
    * *//*

    @RequestMapping("/queryYl")
    public R queryYl(@RequestBody ParameterEntity parameterEntity){
        List<YlEntity> ylEntities = reportService.queryYl(parameterEntity);
        int total = reportService.queryYlTotal(parameterEntity);
        PageUtils pageUtil = new PageUtils(ylEntities, total, parameterEntity.getLimit(), parameterEntity.getPage());
        return R.ok().put("data",pageUtil);
    }
}
*/
